package Swing;

import javax.swing.*;
import java.awt.*;

public class Test_JTestField extends JFrame {
    public Test_JTestField() {
        Container contentPane = this.getContentPane();

        JTextField textField1 = new JTextField("Hello........");
        JTextField textField2 = new JTextField("Hello--------");
        contentPane.add(textField1,BorderLayout.SOUTH);
        contentPane.add(textField2,BorderLayout.NORTH);
        this.setVisible(true);
        this.setSize(500,500);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }
    public static void main(String[] args) {
        new Test_JTestField();
    }
}
